package cn.micro.system.manage.entity.dto;

import cn.micro.system.manage.common.vaildate.ValidateGroup;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class UpdatePasswordDTO {
    @NotEmpty(message = "用户ID不能为空", groups = ValidateGroup.updatePassword.class)
    private String id;

    @NotEmpty(message = "旧密码不能为空",groups = ValidateGroup.updatePassword.class)
    private String oldPassword;

    @NotEmpty(message = "新密码不能为空",groups = ValidateGroup.updatePassword.class)
    private String newPassword;
}
